//
//  YeWUDetailTableViewCell.m
//  CarTown
//
//  Created by xionghao on 15/9/28.
//  Copyright (c) 2015年 熊浩. All rights reserved.
//

#import "YeWUDetailTableViewCell.h"
#import <UIImageView+WebCache.h>
@implementation YeWUDetailTableViewCell
+(instancetype)cellWithTablView:(UITableView *)tableview{
    
    static NSString *cellID=@"yewucell";
    
    YeWUDetailTableViewCell *cell=[tableview dequeueReusableCellWithIdentifier:cellID];
    if (cell==nil) {
        [tableview registerNib:[UINib nibWithNibName:NSStringFromClass([self class]) bundle:nil] forCellReuseIdentifier:cellID];
        cell=[tableview dequeueReusableCellWithIdentifier:cellID];
    }
    return cell;
    
}
-(void)setItem:(ComSonItemMode *)item{
    _item=item;
    [self.icon sd_setImageWithURL:[NSURL URLWithString:[NSString getImageURLstr:_item.com_ico]] placeholderImage:[UIImage imageNamed:@"usericon_placehoder"]];
    self.name.text=_item.com_ctusername;
    self.job.text=_item.com_job;
}

- (void)awakeFromNib {
    // Initialization code
    self.icon.layer.cornerRadius=self.icon.width/2;
    self.icon.layer.borderColor=[[UIColor lightGrayColor] CGColor];
    self.icon.layer.borderWidth=0.5;
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
